package com.ruoyix.novel.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 章节大纲业务对象 novel_chapter_outline
 *
 * @author ruoyi
 * @date 2025-06-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NovelChapterOutlineBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属卷ID
     */
    @NotNull(message = "所属卷ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long volumeId;

    /**
     * 章节大纲标题
     */
    @NotBlank(message = "章节大纲标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 章节大纲摘要（即章节粗纲内容）
     */
    @NotBlank(message = "章节大纲摘要（即章节粗纲内容）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String summary;

    /**
     * 父级大纲ID，用于构建层级
     */
    @NotNull(message = "父级大纲ID，用于构建层级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 排序顺序
     */
    @NotNull(message = "排序顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderIndex;

    /**
     * 备注
     */
    private String remark;



}
